package br.edu.ifmg.ada.model.business;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="tb_horario")
public class Horario {

	@DatabaseField(generatedId=true, canBeNull=false, unique=true)
	private int _id;
	@DatabaseField(foreign=true, canBeNull=false, columnName="_id_disciplina")
	private Disciplina disciplina;
	@DatabaseField
	private String hr_inicio;
	@DatabaseField
	private String hr_fim;
	
	public Horario(){}
	public Horario(Disciplina disciplina, String hr_inicio, String hr_fim){
		this.disciplina = disciplina;
		this.hr_inicio = hr_inicio;
		this.hr_fim = hr_fim;
	}
	public int get_id() {
		return _id;
	}
	public void set_id(int _id) {
		this._id = _id;
	}
	public Disciplina get_id_disciplina() {
		return disciplina;
	}
	public void set_id_disciplina(Disciplina disciplina) {
		this.disciplina = disciplina;
	}
	public String getHr_inicio() {
		return hr_inicio;
	}
	public void setHr_inicio(String hr_inicio) {
		this.hr_inicio = hr_inicio;
	}
	public String getHr_fim() {
		return hr_fim;
	}
	public void setHr_fim(String hr_fim) {
		this.hr_fim = hr_fim;
	}
	
}
